<?php
use Hyperf\Crontab\Crontab;

return [
    // 是否开启定时任务
    'enable' => true,
    'crontab' => [
       // (new Crontab())->setName('BackhaulUserTask')->setRule('*/10 * * * * *')->setCallback([App\Task\TestBackUserTask::class, 'execute'])->setMemo('获取新注册的用户'),
        (new Crontab())->setName('BackhaulUser')->setRule('*/10 * * * * *')->setCallback([App\Task\BackhaulUserTask::class, 'execute'])->setMemo('获取新注册的用户'),
      (new Crontab())->setName('BackhaulOrder')->setRule('*/20 * * * * *')->setCallback([App\Task\BackhaulOrderTask::class, 'execute'])->setMemo('回传上报订单'),
       (new Crontab())->setName('BackhaulDyUser')->setRule('*/10 * * * * *')->setCallback([App\Task\BackhaulDyUserTask::class, 'execute'])->setMemo('获取抖音新注册的用户，上报'),
      (new Crontab())->setName('BackhaulDyOrder')->setRule('*/20 * * * * *')->setCallback([App\Task\BackhaulDyOrderTask::class, 'execute'])->setMemo('获取抖音回传上报订单'),
//        (new Crontab())->setName('BackhaulDyEcpmByImpressionTask')->setRule('*/5 * * * *')->setCallback([App\Task\BackhaulDyEcpmByImpressionTask::class, 'execute'])->setMemo('回传ECPMImpression上报订单')
        (new Crontab())->setName('BackhaulDyEcpmTask')->setRule('*/5 * * * *')->setCallback([App\Task\BackhaulDyEcpmTask::class, 'execute'])->setMemo('回传Ecpm上报订单'),
        (new Crontab())->setName('BackhaulDyEcpmArpuTask')->setRule('*/10 * * * *')->setCallback([App\Task\BackhaulDyEcpmArpuTask::class, 'execute'])->setMemo('回传EcpmArpu上报订单'),
    ],
];